﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Core.Entities;

/// <summary>
///     角色权限
/// </summary>
[Table("Sys_RoleMenu")]
[Comment("角色权限")]
public class SysRoleMenu : EFCreateNoKeyEntity, ICreate
{
    /// <summary>
    ///     角色Id
    /// </summary>
    [Comment("角色Id")]
    [SugarColumn(IsPrimaryKey = true)]
    public long RoleId { get; set; }

    [SugarColumn(IsIgnore = true)] public SysRole Role { get; set; }

    /// <summary>
    ///     功能/权限Id
    /// </summary>
    [Comment("功能/权限Id")]
    [SugarColumn(IsPrimaryKey = true)]
    public long MenuId { get; set; }

    [SugarColumn(IsIgnore = true)] public SysMenu Menu { get; set; }
}